package com.ruoyi.hotSpot.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.hotSpot.domain.StaticInfo;
import com.ruoyi.hotSpot.mapper.StaticInfoMapper;
import com.ruoyi.hotSpot.service.StaticInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author Administrator
* @description 针对表【a2_static_info(AIS/ADS-B静态信息表)】的数据库操作Service实现
* @createDate 2025-02-14 17:56:06
*/
@Service
public class StaticInfoServiceImpl extends ServiceImpl<StaticInfoMapper, StaticInfo>
    implements StaticInfoService {

    @Autowired
    private StaticInfoMapper staticInfoMapper;

    @Override
    public StaticInfo selectByMmsiIcao(String mmsiIcao) {
        QueryWrapper<StaticInfo> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("mmsi_icao", mmsiIcao);
        return staticInfoMapper.selectOne(queryWrapper);
    }
}




